﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class doctor_webcon_paper : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    public int Guid
    {
        set
        {
            this.hlPaper.Attributes.Add("Guid", value.ToString());
            Paper p = new Paper(value);
            this.hlPaper.Text = p.Title;
            this.hlPaper.NavigateUrl = Params.DoctorFolderHttp + "paper.aspx?uid="+Request.Params["uid"]+"&guid="+p.StudentGuid.ToString();
            this.labDate.Text = p.CreateTime.ToString();
            this.labStatus.Text = p.Status;
        }
        get
        {
            return Convert.ToInt32(this.hlPaper.Attributes["Guid"]);
        }
    }

    public int SortID
    {
        set
        {
            this.labSortID.Text = value.ToString();
        }
    }
    protected void btnSendMessage_Click(object sender, EventArgs e)
    {
        Response.Redirect(Params.DoctorFolderHttp + "write.aspx?uid=" + Request.Params["uid"] + "&recvers=" + this.Guid.ToString());
    }
}
